package com.ruoyi.interview.controller;

import java.util.List;


import com.ruoyi.common.core.domain.R;
import com.ruoyi.interview.domain.vo.DistrictVo;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.PostMapping;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ruoyi.interview.service.IRcDistrictService;
import com.ruoyi.common.core.web.controller.BaseController;


/**
 * 地区Controller
 * 
 * @author ruoyi
 * @date 2024-05-28
 */
@RestController
@RequestMapping("/district")
public class RcDistrictController extends BaseController
{
    @Autowired
    private IRcDistrictService rcDistrictService;

    /**
     *
     * 查询地区列表
     */

    @PostMapping("/list")
    public List<DistrictVo> list()
    {
        return  rcDistrictService.selectRcDistrictList();
    }


    @PostMapping("/districtList")
    public R districtList()
    {
        return  rcDistrictService.districtList();
    }

}
